package com.qidi.mapper;

import com.qidi.pojo.Book;

import java.util.List;

/**
 * @author zhouXinBin
 * @create 2020-09-02-16:31
 */
public interface BookDao {
    public Book queryBookById(Integer id);
    public List<Book> queryAllBook();
    public void addBook(Book book);
    public void deleteBookById(Integer id);
    public void updateBook(Book book);

    public List<Book> queryPageBook(int begin,int pageSize);
    public Object TotalBooknum();

    public Object BooknumByPrice(int min, int max);

    public List<Book> queryPageBookByPrice(int begin, Integer pageSize, int min, int max);
}
